{%extends "baselist.html"%}
{%block title%}<title>论坛列表</title>{%endblock%}


{%block style%}
<style>
    .header{
        background-color: black;

    }

    body{
        background-image: url({{url_for("static",filename="img/62.jpg")}});
    }
    .card{
        background-color:rgb(39, 43, 43);
        padding-top: 100px;
        padding-bottom: 100px;
    }
</style>
{%endblock%}


{%block header%}
    <h1 style="color: aliceblue;">论坛列表</h1>
{%endblock%}
{%block leftside%}{%endblock%}

{%block cardmid1%}
    <p style="text-align: center;"><a href={{url_for("forum.createforum",poid=poid)}}>创建新论坛</a></p>
{%endblock%}
{%block cardmid2%}
        <p>
        <ul>
        {%for aim in aims%}
        <li>
            <a href={{url_for("article.articlelist",foid=aim.fo_id)}}>{{aim.fo_name}}</a>
            <a href={{url_for("forum.forumlist",poid=aim.fo_id)}} ><p style="text-align: center;font-size: smaller;color: black;">子论坛</p></a>
            <hr><br>
        </li>
        {%endfor%}
        </ul>
        </p>
{%endblock%}

{%block footer%}
    <a href={{url_for("root.index")}}> <p style="text-align: center;">返回目录</p></a>
    <form method="get">

        &emsp;
        <input type="submit" value="跳转到"><input type="text" name="page" style="width: 50px;">
        &emsp;

    </form>
{%endblock%}